package com.zr.gdms.serviceimpl;

import java.util.List;

import com.zr.gdms.dao.ScoreSelectStudentdao;
import com.zr.gdms.daoimpl.ScoreSelectStudentdaoimpl;
import com.zr.gdms.model.Student;
import com.zr.gdms.service.ScoreSelectStudentSrevice;

import net.sf.json.JSONObject;

public class ScoreSelectStudentSreviceimpl implements ScoreSelectStudentSrevice {
			ScoreSelectStudentdao sss=new ScoreSelectStudentdaoimpl();
	@Override
	public JSONObject getScoreStudents(int sid, int score1, int score2, int page, int rows) {
		// TODO Auto-generated method stub
		JSONObject j=new JSONObject();
		j.put("total", sss.getStudentsCount(sid));		
		j.put("rows",sss.getScoreStudents(sid, score1, score2, page, rows));
		return j;	
	}
	
		
		
		
	

}
